<?php


namespace App\Extensions\Actions\Document;

use App\Document;

class DocumentUploadSettingPost extends DocumentUploadPost
{
    public $name = '配置附件';


    public function form()
    {
        // $this->text('name', '名称');
        $this->select('slug', '类型')->options(Document::slugOptions(1))->required();
        $this->file('file', '请选择文件')->required();
        $this->hidden('type', '类型')->default(1);
    }
}
